package com.ruoyi.system.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 active_prize_config
 *
 * @author ruoyi
 * @date 2022-10-18
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ActivePrizeConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 盒子id
     */
    @Excel(name = "盒子id")
    private Long boxId;

    /**
     * 返还门票百分比 回收价值根据此字段和门票计算
     */
    @Excel(name = "返还门票百分比 回收价值根据此字段和门票计算")
    private BigDecimal proportion;

    /**
     * 商品名
     */
    @Excel(name = "商品名")
    private String name;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String img;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBoxId(Long boxId) {
        this.boxId = boxId;
    }

    public Long getBoxId() {
        return boxId;
    }

    public void setProportion(BigDecimal proportion) {
        this.proportion = proportion;
    }

    public BigDecimal getProportion() {
        return proportion;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("boxId", getBoxId())
                .append("proportion", getProportion())
                .append("name", getName())
                .append("img", getImg())
                .append("createTime", getCreateTime())
                .toString();
    }
}
